/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HomeCombustibleGasDetector {
    static categoryCode = '010020040';

    static categoryName = '家用可燃气体探测器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return HomeCombustibleGasDetector.categoryCode;
    }

    get categoryName() {
        return HomeCombustibleGasDetector.categoryName;
    }

    getAlarmDuration(params) {
        return command({
            method: 'getAlarmDuration',
            methodId: 'pkp1XM6z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmRingtone(params) {
        return command({
            method: 'getAlarmRingtone',
            methodId: 'p0crQlJE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'phEq1DI1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmVolume(params) {
        return command({
            method: 'getAlarmVolume',
            methodId: 'pz93pKsI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmWarming(params) {
        return command({
            method: 'getAlarmWarming',
            methodId: 'ptRSbsko',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOAlarmThreshold(params) {
        return command({
            method: 'getCOAlarmThreshold',
            methodId: 'p3deLnaW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCODetectionStatus(params) {
        return command({
            method: 'getCODetectionStatus',
            methodId: 'pj7xkXnM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOValue(params) {
        return command({
            method: 'getCOValue',
            methodId: 'pXZuumXn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasAlarmThreshold(params) {
        return command({
            method: 'getGasAlarmThreshold',
            methodId: 'pdN73uVR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasDetectionStatus(params) {
        return command({
            method: 'getGasDetectionStatus',
            methodId: 'pqYhVFxl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasValue(params) {
        return command({
            method: 'getGasValue',
            methodId: 'pNnZxtRK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorSwitch(params) {
        return command({
            method: 'getIndicatorSwitch',
            methodId: 'pBTQg5y9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSensitivity(params) {
        return command({
            method: 'getSensitivity',
            methodId: 'pWG0ZfZ5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmDuration(params) {
        return command({
            method: 'setAlarmDuration',
            methodId: 'pZgRtG0G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmRingtone(params) {
        return command({
            method: 'setAlarmRingtone',
            methodId: 'p1vFB8vb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'peHyqSxS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmVolume(params) {
        return command({
            method: 'setAlarmVolume',
            methodId: 'pGox7xcx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCOAlarmThreshold(params) {
        return command({
            method: 'setCOAlarmThreshold',
            methodId: 'pUPQO3h3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGasAlarmThreshold(params) {
        return command({
            method: 'setGasAlarmThreshold',
            methodId: 'ppAXiVFV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorSwitch(params) {
        return command({
            method: 'setIndicatorSwitch',
            methodId: 'pDrhEcCq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSensitivity(params) {
        return command({
            method: 'setSensitivity',
            methodId: 'pghzWYlk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HomeCombustibleGasDetector;
